var aneObj=function()
{
	this.x=[];
	this.rootx=[];
	this.headx=[];
	this.heady=[];
	this.amp=[];
	this.alpha=0;
}
aneObj.prototype.num=50;
aneObj.prototype.init=function()
{
	for(var i=0;i<this.num;i++)
	{
		this.rootx[i]=i*17+Math.random()*20;
		this.headx[i]=this.rootx[i];
		this.heady[i]=canHeight-250+Math.random()*50;
		this.amp[i]=Math.random()*30+30;
		
	}

}
aneObj.prototype.draw=function()
{
	ctx2.save();
	ctx2.globalAlpha=0.6;
	ctx2.strokeStyle="purple";
	ctx2.lineWidth=20;	
	ctx2.lineCap="round";
	this.alpha+=deltaTime*0.0005;
	for(var i=0;i<this.num;i++)
	{
		ctx2.beginPath();
		var l=Math.sin(this.alpha);
		ctx2.moveTo(this.rootx[i],canHeight);
		this.headx[i]=this.rootx[i]+l*this.amp[i];
		ctx2.quadraticCurveTo(this.rootx[i],canHeight-100,this.headx[i],this.heady[i]);
		
		ctx2.stroke();
	
	}

	ctx2.restore();

}